package com.aaa.medicine.service.impl;


import com.aaa.entity.Purchase;
import com.aaa.medicine.dao.PurchaseMapper;
import com.aaa.medicine.service.IPurchaseService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 王雪桂
 * @since 2023-03-29
 */
@Service
public class PurchaseServiceImpl extends ServiceImpl<PurchaseMapper, Purchase> implements IPurchaseService {
@Autowired
private PurchaseMapper purchaseMapper;
    @Override
    public IPage<Purchase> getAll(Page page, String providerId, String applyUserName, String status) {
        return purchaseMapper.getAll(page,providerId,applyUserName,status);
    }

    @Override
    public IPage<Purchase> getAll1(Page page, String applyUserName, String providerId) {
        return purchaseMapper.getAll1(page,applyUserName,providerId);
    }

    @Override
    public int modification(String purchaseId, String stutas) {
        return purchaseMapper.modification(purchaseId,stutas);
    }

}
